package com.chucang.shucang.common.base.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.io.Serializable;

/**
 * @author flitsneak
 * @email flitsneak@gmail.com
 * @date 2022/9/11 15:13
 * @description 基础错误码
 */
@AllArgsConstructor
@Getter
public enum ErrorCode implements Serializable {

    GATEWAY_SERVER_ERROR(8888, "网关响应异常！"),
    INTERNAL_SERVER_ERROR(10000, "系统内部服务异常！"),
    VALIDATION_EXCEPTION(10001, "jsr303校验错误！");

    private final int code;
    private final String msg;
}
